//package com.demo2do.fms.admin.dao.supplier;
//
//import java.util.List;
//
//import com.demo2do.core.persistence.annotation.Dao;
//import com.demo2do.core.persistence.annotation.Query;
//import com.demo2do.core.persistence.annotation.Variable;
//import com.demo2do.fms.entity.vehicle.VehicleDriverRelation;
//
///**
// *
// * @author Ark
// *
// */
//@Dao("hibernate")
//public interface VehicleDriverRelationDao {
//    
//    /**
//     * @param vehicleCode
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE vehicleCode = :vehicleCode AND disabled = false")
//    public List<VehicleDriverRelation> list(@Variable("vehicleCode") String vehicleCode);
//    
//    /**
//     * @param vehicleCodes
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE vehicleCode IN (:vehicleCodes) AND disabled = false")
//    public List<VehicleDriverRelation> list(@Variable("vehicleCodes") List<String> vehicleCodes);
//    
//    /**
//     * @param driverId
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE driverId = :driverId AND disabled = false")
//    public VehicleDriverRelation loadByDriver(@Variable("driverId") Long driverId);
//    
//    /**
//     * @param vehicleCode
//     * @param driverId
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE vehicleCode = :vehicleCode AND driverId = :driverId AND disabled = false")
//    public VehicleDriverRelation loadByDriver(@Variable("vehicleCode") String vehicleCode, @Variable("driverId") Long driverId);
//    
//    /**
//     * @param copilotId
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE copilotId = :copilotId AND disabled = false")
//    public VehicleDriverRelation loadByCopilot(@Variable("copilotId") Long copilotId);
//    
//    /**
//     * @param vehicleCode
//     * @param copilotId
//     * @return
//     */
//    @Query("FROM VehicleDriverRelation WHERE vehicleCode = :vehicleCode AND copilotId = :copilotId AND disabled = false")
//    public VehicleDriverRelation loadByCopilot(@Variable("vehicleCode") String vehicleCode, @Variable("copilotId") Long copilotId);
//
//}
